<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="org.lsms.dao.impl.*" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>Administrator Release New Note Page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="LSMS,ICSEE,MEMBER">
	
	<link rel="stylesheet" type="text/css" href="../css/author_layout.css">
	<link rel="stylesheet" type="text/css" href="../css/hyper_link_style.css">

	<script type="text/javascript">
		function check(){
			var title = document.new_note.title;
			if(title.value==""){
				alert("Note title can not be null!");
				title.focus();
				return false;
			}
			
			var content = document.new_note.content;
			if(content.value==""){
				alert("Note content can not be null!");
				content.focus()
				return false;
			}
			
			return true;
		}
	</script>

  </head>
  
  <body>
	<div id="container">
		<div id="header" class="logo_image"></div>
		<div class="nav"></div>
		<div id="author_menu" class="border">
			<table border="0" width="100%"  >
				<tr>
					<td  bgcolor="#CCCCCC"><a href="../index.jsp">Home</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="site_setting.jsp">Site Setting</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="release_new_note.jsp">Release new note</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="mail_notify.jsp">Mail Notify</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="modify_mail_content.jsp">Modify Mail Content</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="modify_info.jsp">Modify Information</a></td>
				</tr>
				<tr>
					<td  bgcolor="#CCCCCC"><a href="../logout">Log Out</a></td>
				</tr>
			</table>
		</div>
		
		<div id="content" class="bg_color border">
			<div style="margin:15px">
			<p><b>Release new note</b></p>
			<form action="../release_new_note" method="post" name="new_note" onSubmit = "return check()">
			<table align='center' style="width:680px">
			<tr>
				<td>
					<b>1:note title</b>
				</td>	
				<td>
					<input type='text' name='title' size='50'><span class='star'>&nbsp;*</span>
				</td>
			<tr>
			<tr>
				<td>
					<b>2:note content</b>
				</td>
				<td>
					<textarea name='content' cols='45' rows='5'></textarea><span class='star'>&nbsp;*</span>
				</td>
			</tr>
			<tr>
				<td>
					<b>3.is top</b>
				</td>
				<td>
					<input type='radio' name='is_top' value='1'>Yes&nbsp;
					<input type='radio' name='is_top' value='0' checked>No&nbsp;<span class='star'>*</span>
				</td>
			</tr>
			<tr>
				<td>
					<br>
				</td>
			</tr>
			<tr>
				<td style="text-align:right;">
					<input type='submit' value='Release'>
				</td>
				<td style="text-align:left">
					<input type='reset' value='Reset'>
				</td>
			</tr>
			</table>
			
			</form>
			</div>	
		</div>
		
		<div class="nav"></div>
			
		<div id="footer" class="footer_color border">
			<p align="center"><b>&copy;2010 LSMS-All Rights Reserved.</b></p>
			<p align="center"> <b>Powered by Shu.</b></p>
		</div>
	</div>
  </body>
</html>
